package com.crm.model.entity.cluePoolManager;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ClueReceiveExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ClueReceiveExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andClueReceiveIdIsNull() {
            addCriterion("clue_receive_id is null");
            return (Criteria) this;
        }

        public Criteria andClueReceiveIdIsNotNull() {
            addCriterion("clue_receive_id is not null");
            return (Criteria) this;
        }

        public Criteria andClueReceiveIdEqualTo(String value) {
            addCriterion("clue_receive_id =", value, "clueReceiveId");
            return (Criteria) this;
        }

        public Criteria andClueReceiveIdNotEqualTo(String value) {
            addCriterion("clue_receive_id <>", value, "clueReceiveId");
            return (Criteria) this;
        }

        public Criteria andClueReceiveIdGreaterThan(String value) {
            addCriterion("clue_receive_id >", value, "clueReceiveId");
            return (Criteria) this;
        }

        public Criteria andClueReceiveIdGreaterThanOrEqualTo(String value) {
            addCriterion("clue_receive_id >=", value, "clueReceiveId");
            return (Criteria) this;
        }

        public Criteria andClueReceiveIdLessThan(String value) {
            addCriterion("clue_receive_id <", value, "clueReceiveId");
            return (Criteria) this;
        }

        public Criteria andClueReceiveIdLessThanOrEqualTo(String value) {
            addCriterion("clue_receive_id <=", value, "clueReceiveId");
            return (Criteria) this;
        }

        public Criteria andClueReceiveIdLike(String value) {
            addCriterion("clue_receive_id like", value, "clueReceiveId");
            return (Criteria) this;
        }

        public Criteria andClueReceiveIdNotLike(String value) {
            addCriterion("clue_receive_id not like", value, "clueReceiveId");
            return (Criteria) this;
        }

        public Criteria andClueReceiveIdIn(List<String> values) {
            addCriterion("clue_receive_id in", values, "clueReceiveId");
            return (Criteria) this;
        }

        public Criteria andClueReceiveIdNotIn(List<String> values) {
            addCriterion("clue_receive_id not in", values, "clueReceiveId");
            return (Criteria) this;
        }

        public Criteria andClueReceiveIdBetween(String value1, String value2) {
            addCriterion("clue_receive_id between", value1, value2, "clueReceiveId");
            return (Criteria) this;
        }

        public Criteria andClueReceiveIdNotBetween(String value1, String value2) {
            addCriterion("clue_receive_id not between", value1, value2, "clueReceiveId");
            return (Criteria) this;
        }

        public Criteria andReceivePeopleIdIsNull() {
            addCriterion("receive_people_id is null");
            return (Criteria) this;
        }

        public Criteria andReceivePeopleIdIsNotNull() {
            addCriterion("receive_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andReceivePeopleIdEqualTo(String value) {
            addCriterion("receive_people_id =", value, "receivePeopleId");
            return (Criteria) this;
        }

        public Criteria andReceivePeopleIdNotEqualTo(String value) {
            addCriterion("receive_people_id <>", value, "receivePeopleId");
            return (Criteria) this;
        }

        public Criteria andReceivePeopleIdGreaterThan(String value) {
            addCriterion("receive_people_id >", value, "receivePeopleId");
            return (Criteria) this;
        }

        public Criteria andReceivePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("receive_people_id >=", value, "receivePeopleId");
            return (Criteria) this;
        }

        public Criteria andReceivePeopleIdLessThan(String value) {
            addCriterion("receive_people_id <", value, "receivePeopleId");
            return (Criteria) this;
        }

        public Criteria andReceivePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("receive_people_id <=", value, "receivePeopleId");
            return (Criteria) this;
        }

        public Criteria andReceivePeopleIdLike(String value) {
            addCriterion("receive_people_id like", value, "receivePeopleId");
            return (Criteria) this;
        }

        public Criteria andReceivePeopleIdNotLike(String value) {
            addCriterion("receive_people_id not like", value, "receivePeopleId");
            return (Criteria) this;
        }

        public Criteria andReceivePeopleIdIn(List<String> values) {
            addCriterion("receive_people_id in", values, "receivePeopleId");
            return (Criteria) this;
        }

        public Criteria andReceivePeopleIdNotIn(List<String> values) {
            addCriterion("receive_people_id not in", values, "receivePeopleId");
            return (Criteria) this;
        }

        public Criteria andReceivePeopleIdBetween(String value1, String value2) {
            addCriterion("receive_people_id between", value1, value2, "receivePeopleId");
            return (Criteria) this;
        }

        public Criteria andReceivePeopleIdNotBetween(String value1, String value2) {
            addCriterion("receive_people_id not between", value1, value2, "receivePeopleId");
            return (Criteria) this;
        }

        public Criteria andReceiveTmIsNull() {
            addCriterion("receive_tm is null");
            return (Criteria) this;
        }

        public Criteria andReceiveTmIsNotNull() {
            addCriterion("receive_tm is not null");
            return (Criteria) this;
        }

        public Criteria andReceiveTmEqualTo(Date value) {
            addCriterion("receive_tm =", value, "receiveTm");
            return (Criteria) this;
        }

        public Criteria andReceiveTmNotEqualTo(Date value) {
            addCriterion("receive_tm <>", value, "receiveTm");
            return (Criteria) this;
        }

        public Criteria andReceiveTmGreaterThan(Date value) {
            addCriterion("receive_tm >", value, "receiveTm");
            return (Criteria) this;
        }

        public Criteria andReceiveTmGreaterThanOrEqualTo(Date value) {
            addCriterion("receive_tm >=", value, "receiveTm");
            return (Criteria) this;
        }

        public Criteria andReceiveTmLessThan(Date value) {
            addCriterion("receive_tm <", value, "receiveTm");
            return (Criteria) this;
        }

        public Criteria andReceiveTmLessThanOrEqualTo(Date value) {
            addCriterion("receive_tm <=", value, "receiveTm");
            return (Criteria) this;
        }

        public Criteria andReceiveTmIn(List<Date> values) {
            addCriterion("receive_tm in", values, "receiveTm");
            return (Criteria) this;
        }

        public Criteria andReceiveTmNotIn(List<Date> values) {
            addCriterion("receive_tm not in", values, "receiveTm");
            return (Criteria) this;
        }

        public Criteria andReceiveTmBetween(Date value1, Date value2) {
            addCriterion("receive_tm between", value1, value2, "receiveTm");
            return (Criteria) this;
        }

        public Criteria andReceiveTmNotBetween(Date value1, Date value2) {
            addCriterion("receive_tm not between", value1, value2, "receiveTm");
            return (Criteria) this;
        }

        public Criteria andReceiveWayIsNull() {
            addCriterion("receive_way is null");
            return (Criteria) this;
        }

        public Criteria andReceiveWayIsNotNull() {
            addCriterion("receive_way is not null");
            return (Criteria) this;
        }

        public Criteria andReceiveWayEqualTo(Integer value) {
            addCriterion("receive_way =", value, "receiveWay");
            return (Criteria) this;
        }

        public Criteria andReceiveWayNotEqualTo(Integer value) {
            addCriterion("receive_way <>", value, "receiveWay");
            return (Criteria) this;
        }

        public Criteria andReceiveWayGreaterThan(Integer value) {
            addCriterion("receive_way >", value, "receiveWay");
            return (Criteria) this;
        }

        public Criteria andReceiveWayGreaterThanOrEqualTo(Integer value) {
            addCriterion("receive_way >=", value, "receiveWay");
            return (Criteria) this;
        }

        public Criteria andReceiveWayLessThan(Integer value) {
            addCriterion("receive_way <", value, "receiveWay");
            return (Criteria) this;
        }

        public Criteria andReceiveWayLessThanOrEqualTo(Integer value) {
            addCriterion("receive_way <=", value, "receiveWay");
            return (Criteria) this;
        }

        public Criteria andReceiveWayIn(List<Integer> values) {
            addCriterion("receive_way in", values, "receiveWay");
            return (Criteria) this;
        }

        public Criteria andReceiveWayNotIn(List<Integer> values) {
            addCriterion("receive_way not in", values, "receiveWay");
            return (Criteria) this;
        }

        public Criteria andReceiveWayBetween(Integer value1, Integer value2) {
            addCriterion("receive_way between", value1, value2, "receiveWay");
            return (Criteria) this;
        }

        public Criteria andReceiveWayNotBetween(Integer value1, Integer value2) {
            addCriterion("receive_way not between", value1, value2, "receiveWay");
            return (Criteria) this;
        }

        public Criteria andClueIdIsNull() {
            addCriterion("clue_id is null");
            return (Criteria) this;
        }

        public Criteria andClueIdIsNotNull() {
            addCriterion("clue_id is not null");
            return (Criteria) this;
        }

        public Criteria andClueIdEqualTo(String value) {
            addCriterion("clue_id =", value, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdNotEqualTo(String value) {
            addCriterion("clue_id <>", value, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdGreaterThan(String value) {
            addCriterion("clue_id >", value, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdGreaterThanOrEqualTo(String value) {
            addCriterion("clue_id >=", value, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdLessThan(String value) {
            addCriterion("clue_id <", value, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdLessThanOrEqualTo(String value) {
            addCriterion("clue_id <=", value, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdLike(String value) {
            addCriterion("clue_id like", value, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdNotLike(String value) {
            addCriterion("clue_id not like", value, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdIn(List<String> values) {
            addCriterion("clue_id in", values, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdNotIn(List<String> values) {
            addCriterion("clue_id not in", values, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdBetween(String value1, String value2) {
            addCriterion("clue_id between", value1, value2, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdNotBetween(String value1, String value2) {
            addCriterion("clue_id not between", value1, value2, "clueId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdIsNull() {
            addCriterion("clue_pool_from_id is null");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdIsNotNull() {
            addCriterion("clue_pool_from_id is not null");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdEqualTo(String value) {
            addCriterion("clue_pool_from_id =", value, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdNotEqualTo(String value) {
            addCriterion("clue_pool_from_id <>", value, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdGreaterThan(String value) {
            addCriterion("clue_pool_from_id >", value, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdGreaterThanOrEqualTo(String value) {
            addCriterion("clue_pool_from_id >=", value, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdLessThan(String value) {
            addCriterion("clue_pool_from_id <", value, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdLessThanOrEqualTo(String value) {
            addCriterion("clue_pool_from_id <=", value, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdLike(String value) {
            addCriterion("clue_pool_from_id like", value, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdNotLike(String value) {
            addCriterion("clue_pool_from_id not like", value, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdIn(List<String> values) {
            addCriterion("clue_pool_from_id in", values, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdNotIn(List<String> values) {
            addCriterion("clue_pool_from_id not in", values, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdBetween(String value1, String value2) {
            addCriterion("clue_pool_from_id between", value1, value2, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdNotBetween(String value1, String value2) {
            addCriterion("clue_pool_from_id not between", value1, value2, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdIsNull() {
            addCriterion("clue_pool_to_id is null");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdIsNotNull() {
            addCriterion("clue_pool_to_id is not null");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdEqualTo(String value) {
            addCriterion("clue_pool_to_id =", value, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdNotEqualTo(String value) {
            addCriterion("clue_pool_to_id <>", value, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdGreaterThan(String value) {
            addCriterion("clue_pool_to_id >", value, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdGreaterThanOrEqualTo(String value) {
            addCriterion("clue_pool_to_id >=", value, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdLessThan(String value) {
            addCriterion("clue_pool_to_id <", value, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdLessThanOrEqualTo(String value) {
            addCriterion("clue_pool_to_id <=", value, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdLike(String value) {
            addCriterion("clue_pool_to_id like", value, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdNotLike(String value) {
            addCriterion("clue_pool_to_id not like", value, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdIn(List<String> values) {
            addCriterion("clue_pool_to_id in", values, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdNotIn(List<String> values) {
            addCriterion("clue_pool_to_id not in", values, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdBetween(String value1, String value2) {
            addCriterion("clue_pool_to_id between", value1, value2, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdNotBetween(String value1, String value2) {
            addCriterion("clue_pool_to_id not between", value1, value2, "cluePoolToId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}